#!/bin/bash



for ((num=1;num<10;num++))
  do
    echo $num
    [ $num -eq 5 ] && break
done

echo "点击Enter按钮进行退出"
read
exit